﻿<media:ModelVisual3D10 x:Class="DarkLight.Controls.Planet"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:media="clr-namespace:System.Windows.Media.Media3D10;assembly=System.Windows.Media.Media3D10"
             mc:Ignorable="d" >
    <media:ModelVisual3D10.Content>
        <media:SphereModel3D10 Radius="{Binding Path=Radius, Mode=OneWay}"
                               Effect="/DarkLight;component/Shaders/Planet.fx" >
            <media:SphereModel3D10.Materials>
                <media:DiffuseMaterial Opacity="{Binding Path=DiffuseCoefficient, Mode=OneWay}">
                    <media:DiffuseMaterial.Brush>
                        <ImageBrush />
                    </media:DiffuseMaterial.Brush>
                </media:DiffuseMaterial>
                <media:GlowMaterial>
                    <media:GlowMaterial.Brush>
                        <ImageBrush />
                    </media:GlowMaterial.Brush>
                </media:GlowMaterial>
            </media:SphereModel3D10.Materials>
            <media:SphereModel3D10.EffectParameters>
                <media:GameTimeParameter />
                <media:CommonMatrixEffectParameter ApplyWorldMatrix="True" ApplyProjectionMatrix="True" ApplyViewMatrix="True" 
                                                   ApplyWorldViewProjectionMatrix="True" />
            </media:SphereModel3D10.EffectParameters>
        </media:SphereModel3D10>
    </media:ModelVisual3D10.Content>
</media:ModelVisual3D10>
